//
//  RBKeyChain.h
//  CBT
//
//  Created by 四点钟 on 2018/11/15.
//  Copyright © 2018 Mr.Zhang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Security/Security.h>

#define KEY_USER_NAME      @"UserName"
#define KEY_USER_PASSWORD  @"UserPassword"
#define KEY_USER_INFO      @"USerInformation"
#define KEY_USER_IDFA      @"USERIDFA"
#define KEY_APPVERSION     @"key_APPVersion"


@interface RBKeyChain : NSObject
/**
 *  保存数据到钥匙串
 *
 *  @param key  保存数据对应key值
 *  @param data 数据
 */
+ (void)saveWithKey:(NSString *)key data:(id)data;

/**
 *  从钥匙串获取
 */
+ (id)fetchWithKey:(NSString *)key;
/**
 *  从钥匙串中删除
 */
+ (void)deleteWithKey:(NSString *)key;

@end
